#ifndef QWORDTOOL_H
#define QWORDTOOL_H

#include "qmytool.h"
#include <QGraphicsItem>


class TOOLS_EXPORT QWordTool : public QMyTool
{
	Q_OBJECT

public:
	QWordTool(QObject *parent=0);
	~QWordTool();
	
    virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent * contextMenuEvent);
    virtual void mouseMoveEvent(QGraphicsSceneMouseEvent * mouseEvent);
    virtual void mousePressEvent(QGraphicsSceneMouseEvent * mouseEvent);
    virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent * mouseEvent);
    virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent * mouseEvent );
	virtual void Finalize();
private:
	QGraphicsTextItem * temp;
	bool isEditing;
	QPointF pos;
	int tmp_idx;
	
};

#endif // QWORDTOOL_H
